<?php

namespace app\site\service\site;

use app\model\site\Article;
use app\site\service\SiteBaseService;
use app\site\service\traits\InstanceTrait;
use think\db\Query;

class ArticleService extends SiteBaseService
{

    use InstanceTrait;

    function initialize()
    {
        $this->model = new Article();
    }

    function formatData(array $data): array
    {
        return  $data;
    }

    function query(): Query
    {
        return $this->setWith(['cate'])->makeQuery();
    }
}
